package com.gitee.xmhzzz.mqtt.broker.security;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @InterfaceName IAuthSecurity
 * @Description
 * @Author wzq
 * @Date 2024/6/27 10:49
 * @Version 1.0
 */
public interface IAuthSecurity {

    void addAuthSecurity(AuthInfo authInfo) throws Exception;

    void removeAuthSecurity(String name);

    Boolean authSecurity(AuthInfo authInfo) throws Exception;

    @Data
    @Accessors(chain = true)
    class AuthInfo{
        private String name;

        private String password;
    }
}
